package com.guli.order.client;

import com.guli.utils.UcenterMember;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author ZHAOZHENYU
 * @since 2022/10/3
 */

@Component
@FeignClient(name = "service-ucenter",fallback = UcenterClientHystrix.class)
public interface UcenterClient {

    @PostMapping("/ucenter/member/getInfoUc/{id}")
    public UcenterMember getInfo(@PathVariable("id") String id);

}
